import * as React from 'react';
import { Spin } from 'antd';
import '../loading/Loading.scss';
export const LoadableLoading = (props) => {
  if (props.err) {
    return (
      <div>致命错误</div>
    )
  } else if (props.pastDelay) {
    return (
      <div className='loading'>
        <div className='loading-content'>
          <Spin className='spin' tip='组件加载中。。。' size='large'/>
        </div>
      </div>
    )
  } else {
    return null
  }
}